<article id="post-0" class="post no-results not-found">
<header class="entry-header">
						<h1 class="entry-titles">Tìm Việc làm</h1>
					</header><!-- .entry-header -->

					<div class="entry-content">
                    <form id="formRegis" name="formRegis" action="<?php echo ROOT_URL ?>/job/find" method="get">
                            	<p>
																
		
                           	  </p>
                            	<table cellpadding="5px" class="login" id="tb_Regi2">
                            	  <tr>
                            	    <td colspan="3"><input id="keyword" type="text"  style="width: 99%; height:30px;"   name="keyword" value="" /></td>
                            	    <td width="198"> <input type="submit" class="green button-css" value="Tìm kiếm" id="ajax_search" /></td>
                          	    </tr>
                            	  <tr>
                            	    <td width="101">
																		<select name="workstyle" id="workstyle"  style="width: 153px;">
																														<option value="null">Any Workstyle</option>
																														<?php 
																			foreach($this -> workstyle as $rows_workstyle){
																			 ?>
																			<option value="<?php echo $rows_workstyle['workstyle']; ?>">
																				<?php echo $rows_workstyle['vn']; ?>
																			</option>
																																	
																			 <?php } ?>
																		</select>
																	</td>
								<td width="86"><select name="category" id="category" >
									<option value="null">Any Category</option>
									
									<?php foreach($this -> jobcategory as $result){ ?>
											<option value="<?php echo $result['CategoryName']; ?>"><?php echo $result['CategoryName'] ?></option>
									<?php  } ?> 
									
								</select></td>
                                  
								<td width="112"><select name="location" id="location" >
									<option value="null">Any Location</option>
								 <?php foreach($this -> location as $rows_location){ ?>
										<option  class="highlight-option" value="<?php echo $rows_location['Location']; ?>">
										<?php  echo $rows_location['Location'] ?></option>
																				
									<?php } ?>
								 
								</select></td>
								<td>&nbsp;</td>
                          	    </tr>
                          	  </table>
                    </form>
                            
              
  <?php //============================= Show Search Result ====================================== ?>                          
                            
                            
                 <span style="float:right">
										<?php echo $this->paginationControl($this->job, 'Sliding', 'pagination.phtml'); ?>
								 </span><br>
      <div id="search-result-table">
                                
				<table  class="table-new sortable">
                                        <thead>
                                            <tr class="sort">
                                                <th style="width:320px;" class="sorttable_sorted_reverse"><span class="sorttable_sorted_reverse" style="width:170px;">Tên việc làm</span><span id="sorttable_sortrevind"></span></th>
                                                <th style="width:260px;" class="sorttable_sorted sorttable_sorted_reverse"><span class="sorttable_sorted sorttable_sorted_reverse" style="width:195px;">Mô tả</span><span></span></th>
												<th style="width:100px;" class=""><span class="sorttable_sorted sorttable_sorted_reverse" style="">Địa điểm</span><span></span><img src="http://www.itworks.vn/wp-content/themes/twentyeleven/images/icon-sort-c.png" alt="" /></th>
                                           		
                                            </tr>
                                        </thead>
                                        <tbody>
                                         		<?php	
											 $i=0;
				if(!empty($this -> job)){
					foreach($this -> job as $res){
					?>
									
                                  
                                      <tr class="<?php if($i % 2 == 1){echo'white ';}elseif($i % 2 != 1){echo 'brow ';} $i++; ?>
                                      	<?php
									  $temp =$res['JobType'];
									 if( $temp=='Part-time'){
										echo 'part-time';
									 } ?>
                                      ">  
															   
                                	   <td >
                                           <a href="<?php echo ROOT_URL ?>/job/view/id/<?php echo  $res['Job_ID']; ?>">
                                                <span class="job-title"><?php
                                                     echo $res['JobTitle'];
                                                     ?></span>
                                            </a>
											 
                                             <?php
											 echo '<br/>';
											 echo $res['ComName'];
											 
										?></td>
                                	
                                	   <td><div class="overlow1">
									   <?php  $text = $res['JobDesc'];
											 echo strip_tags($text,'<div><br/>');
										?></div></td>
                                	  <td class="workplace"><?php
											  echo $res['WorkPlace'];
										?></td>
                                	    <td > 
										
																													
												<td class="button-job-status" id="job_status<?php echo $res['Job_ID']; ?>">																			
												<a href="/pick-up/?id=<?php echo  $res['Job_ID']; ?> ">																			
												<img src="http://www.itworks.vn/wp-content/themes/twentyeleven/images/pickup-vn.png"alt="" /></a>																			
										
                                          </td>
                                          
                              	    </tr>
                                   
                                        <?php
                      
						} } 
                        ?>
                                  
									</tbody>                                
                                	 
                              	  <tfoot></tfoot></table> 

  
			</div><!-- .entry-content -->
</article><!-- #post-0 -->